package com.atkxp.stustatusmasystem.service;

import com.atkxp.stustatusmasystem.pojo.Course;
import com.atkxp.stustatusmasystem.pojo.Student;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author user
 * @declaration
 * @create 2023/5/24-19:53
 */
@Service
public interface StudentService {
    List<Student> getAllStudents();

    List<Student> getAllStudentsByTid(String tid);

    Long getStudentCount();

    Long getStudentCountByTid(String tid);

    Student login(String username, String password);

    List<Course> getAllCoursesBySidAndSyear(String sid, int syear);

    int addStudent(Student student);

    int deleteStudentById(int id);

    Student getStudentById(int id);

    int updateStudentById(Student student);
}
